home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / string.h < prev   
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.6 KB  |  102 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.27.28;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @now uses a font
  30. @
  31. text
  32. @//$Id$
  33. #ifndef CLASS_STRING_H
  34. #define CLASS_STRING_H
  35.  
  36. #ifndef EXEC_TYPES_H
  37. #include <exec/types.h>
  38. #endif
  39.  
  40. #ifndef INTUITION_INTUITION_H
  41. struct Image ;
  42. #endif
  43.  
  44. #ifndef LIBRARIES_GADTOOLS_H
  45. #define PLACETEXT_LEFT  0x0001  /* Right-align text on left side */
  46. #endif
  47.  
  48. #ifndef CLASS_WINDOW_H
  49. class window ;
  50. #endif
  51.  
  52. #ifndef CLASS_GADGETLIST_H
  53. class gadgetlist ;
  54. #endif
  55.  
  56. #ifndef CLASS_GADGET_H
  57. #include "gadgets/gadget.h"
  58. #endif
  59.  
  60. // ========================================================================
  61. // ==========================  STRING CLASS ===============================
  62. // ========================================================================
  63.  
  64. class string : public gadget
  65. {
  66.     Image   *im ;
  67.     TextFont *gfont ;
  68. public:
  69.     long    maxsize ;
  70.     STRPTR curstring ;
  71.     STRPTR  buffer ;
  72.     string(gadgetlist *gl,
  73.            void (window::*func)(gadget *, unsigned long, unsigned short),
  74.            const char *title=NULL,
  75.            const char *text=NULL,
  76.            long max=64,
  77.            unsigned long flags=PLACETEXT_LEFT,
  78.            unsigned long justify=0) ;
  79.     ~string() ;
  80.     void action(unsigned long, unsigned short) ;
  81.     void set(STRPTR) ;
  82.     void keystroke(BOOL shifted) ;
  83. };
  84. #endif
  85. @
  86.  
  87.  
  88. 1.1
  89. log
  90. @Initial revision
  91. @
  92. text
  93. @d1 1
  94. d36 1
  95. d38 1
  96. d40 1
  97. d43 2
  98. a44 2
  99.            STRPTR title=NULL,
  100.            STRPTR text=NULL,
  101. @
  102.